package com.ww.microrpc.netty.protocol;

import com.ww.microrpc.netty.Constant;

public class ErrorMessage implements Message {
    private int requestId;
    private int messageType = Constant.MessageType.RpcResponse;

    private String errorMessage;

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public void setRequestId(int requestId) {
        this.requestId = requestId;
    }

    @Override
    public int getMessageType() {
        return messageType;
    }

    @Override
    public int getRequestId() {
        return requestId;
    }
}
